package example1;
import java.util.Scanner;

public class ScannerEx {
	public static void main(String args[]) {
		Scanner input = new Scanner(System.in);
		
		System.out.println("请输入你的信息");
		System.out.print("你的学号是：");
		int studentNumber = input.nextInt();
		System.out.print("你的名字是：");
		String name = input.next();
		System.out.print("你的年龄是：");
		int age = input.nextInt();
		System.out.print("你的住所是：");
		String address = input.next();
		
		System.out.println("\n学号：" + studentNumber);
		System.out.println("姓名：" + name);
		System.out.println("年龄：" + age);
		System.out.println("住所：" + address);
		
		input.close();
	}
}
